# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: scapy_demo.py
@time: 2021/01/21
"""
import sys
import builtins

print(sys.path)

# 不要跟模块取同一个名，因为当前运行的模块在三方模块前面导入。
# 如果取一样的名字，只会导入当前模块，不会去导入三方模块
from scapy.all import *

def test01():
    global x
    x = 10

test01()
print(x)



if __name__ == '__main__':
    pass
    # ip = Ether()/IP()/TCP()
    # ip.show()
    # ip = IP()
    # ip.show()
    # print('{1:#>10}--{0:"<10}'.format('122', '456'))
    # print(globals())
    # for val in dir(builtins):
    #     print(val)
    # import builtins
    # builtins.print('xxx')